
package com.kugou.game.sdk.entity;

import com.kugou.game.sdk.api.common.ActivityOrientation;
import com.kugou.game.sdk.core.SDKControler;

import java.io.Serializable;

/**
 * 描述:用户中心Banner信息实体类
 *
 * @author jamywang
 * @since 2016年5月9日 下午3:45:08
 */
public class UserCenterBannerInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private String imageUrl;

    private String imageUrlPortrait;// banner图片url竖屏

    private String imageUrlLandscape;// banner图片url横屏

    private String decs;// banner描述

    private int type = 0;// 跳转类型

    private String title;// 跳转页面标题

    private String pageUrl;// 跳转页面url

    public String getImageUrl() {
        if (SDKControler.getActivityOrientation() == ActivityOrientation.PORTRAIT) {
            return getImageUrlPortrait();
        } else {
            return getImageUrlLandscape();
        }
    }

    public String getImageUrlPortrait() {
        return imageUrlPortrait;
    }

    public void setImageUrlPortrait(String imageUrlPortrait) {
        this.imageUrlPortrait = imageUrlPortrait;
    }

    public String getImageUrlLandscape() {
        return imageUrlLandscape;
    }

    public void setImageUrlLandscape(String imageUrlLandscape) {
        this.imageUrlLandscape = imageUrlLandscape;
    }

    public String getDecs() {
        return decs;
    }

    public void setDecs(String decs) {
        this.decs = decs;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUrl() {
        return pageUrl;
    }

    public void setUrl(String url) {
        this.pageUrl = url;
    }

}
